$(".dophone").submit(function () {
    var formData = $(".dophone").serialize();
    $.ajax({
        url:'../pdophone',
        data:formData,
        type:'post',
        dataType:'json',
        success:function (data) {
            if (data['status'] == 1){
                layer.msg("位数不足11位！",{offset:'50%',icon:6,time:1000},function () {
                    location.reload();
                });
            } else if (data['status'] == 2) {
                layer.msg("查无此号码！您可能未注册过！",{offset:'50%',icon:6,time:1000},function () {
                    location.reload();
                });
            } else {
                layer.msg("号码验证成功！",{offset:'50%',icon:6,time:1000},function () {
                    location.href = '../plogdopass/'+data['tel'];
                });
            }
        }
    })
    return false;
});